const express = require("express");
const router = express.Router();
const qiniu = require("../utils/qiniu");

// 创建上传凭证
router.get("/", (req, res) => {
  let token = new qiniu().uploadToken();
  res.json({
    code: 200,
    msg: "操作成功",
    token: token,
  });
});
module.exports = router;
